package cn.rengy.web.framework.wxmp.pay;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import cn.rengy.tpa.wxmp.pay.MchKeyCallable;
import cn.rengy.web.framework.wxmp.WxMerchant;
import cn.rengy.web.framework.wxmp.WxMerchantService;
@Component
public class MchKeyCallableImpl implements MchKeyCallable {
	@Autowired
	private WxMerchantService wxMerchantService;
	
	@Override
	public String get(String mch_id) {
		WxMerchant wxMerchant=wxMerchantService.getWxMerchant(mch_id);
		return wxMerchant.getMch_key();
	}

}
